package com.meiyou.service;

import java.util.List;

import com.alipay.api.domain.PublicAuditStatus;
import com.meiyou.pojo.DongTai;
import com.meiyou.pojo.DongtaiDianzan;
import com.meiyou.pojo.MeiyouDongtai;
import com.meiyou.pojo.MeiyouUser;
import com.meiyou.pojo.NewPinglun;
import com.meiyou.pojo.Pinglun;
import com.meiyou.pojo.PinglunDianzan;
import com.meiyou.pojo.User;
import com.meiyou.pojo.vo.DianZanUser;
import com.meiyou.pojo.vo.PingLunBo;
import com.meiyou.pojo.vo.PinglunUser;

public interface DongtaiService {

	public void insert(DongTai dongtai);
	
	public void updatecishu(String dongtaiId);
	
	public DongTai selectById(String dongtaiId);
	
	public MeiyouUser selectUserById(String uPhone);
	
	//点赞
	public void adddianzan(String dongtaiId);
	
	//取消点赞
	public void recevedianzan(String dongtaiId);
	
	//添加评论
	public int addpinglun(Pinglun pinglun);
	
	//根据动态ID查询所有评论
	public List<Pinglun> selectAllPinglun(String dongtaiId);
	
	//点赞评论
	public void adddianzanpinglun(int id);
	//取消点赞评论
	public void recevedianzanpinglun(int id);
	
	public DongTai selectDongtaiByuccount(String account);
	
	public DongTai selectDongtaiByDongtaiId(String dongtaiId);
	
	//用户名查询用户信息
	public MeiyouUser selectUserByaccount(String accdount);
	
	//查询出所有评论(最新)
	public List<PingLunBo> selectPinglunByDongtaiId(String dongtaiId);
	
	//根据动态id查询动态信息（最新）
	public MeiyouDongtai selectDongtaiByDontaiId(String dongtaiId);
	
	//根据用户名查询他发布的所有动态（最新）
	public List<MeiyouDongtai> selectAllDongtaiByAccount(String account);
	
	//判断是否点赞
	public List<DongtaiDianzan> panduanshifoudianzan(DongtaiDianzan dongtaiDianzan);

	//<!-- 根据用户Id查询未通知评论  1 表示未读 2 表示已读 -->
		List<PinglunUser> selectIsNotReadPinglun(int userId);
		
		//<!-- 根据用户Id查询未通知动态点赞   1 表示未读 2 表示已读 -->
		List<DianZanUser> selectIsNotReadDontaiDianzan(int userId);
		
		//<!-- 根据用户Id查询未通知评论点赞   1 表示未读 2 表示已读 -->
		List<DianZanUser> selectIsNotReadPinglunById(int userId);

	
}